package site.yunnong.atvris.service.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import site.yunnong.atvris.service.domain.EsVideo;

/**
 * @author zjh
 * @date 2021/9/26 16:34
 */
@Repository
public interface EsVideoRepository extends ElasticsearchRepository<EsVideo, Long> {

    /**
     * 
     * @param userNickname
     * @param partitionName
     * @param title
     * @param pageable
     * @return
     */
    Page<EsVideo> findByUserNicknameOrPartitionNameOrTitle(String userNickname, String partitionName, String title, Pageable pageable);
}
